package com.cxb.utils;

import android.view.KeyEvent;

import com.cxb.R;

public class Constants {
	
	
	public final static String SD_INNER_PATH="/mnt/sdcard/";
	public final static String SD_EXTERNAL_PATH="/mnt/sdcard2/";
	
	/** Client Info**/
	public final static int CLIENT_SYMBOL = CommonUtils.VERSION_ZHAOSHAN;
//	public final static String D_VERSION_CLIENTPRE = "AM35SV";
//	public final static String D_VERSION_CLIENT = "-ZS";
//	public final static String URL_SERVER_ID = "&serverId=gh_12d4d1ac58e9";//

	/**
	 * 	云途易行 gh_295c2c4db25f
	 *	招商云途 gh_12d4d1ac58e9
	 *	世纪九通 gh_dbf697393b55
	 * 
	 */
	
	public final static String OTAUPDATEADRESS = "http://upgrade.ami-tek.com.cn:8085/web/form.php";
 	public final static String WCDMA_SERVER_URL = "http://platform.ami-tek.com.cn";
	protected final static String ZHAOSHAN_ROOT_SERVER_URL = "http://pf.iov.cmytc.com:5600/";
	public final static String ZHANSHAN_HTTP_SERVER = "http://wx.service.cmytc.com/";
//	public final static String ZHANSHAN_HTTP_SERVER = "http://yt.test.cmytc.com/";
//	public final static String ZHANSHAN_HTTP_SERVER = "http://ota.cmytc.com/";
	public final static String 	PARAM_CONFIG_HTTP_SERVER = "http://ota.cmytc.com/";
	protected final static String AMI_ROOT_SERVER_URL = "http://s.ami-tek.cn/";
//	public final static String ROOT_SERVER_URL = "http://zs.ami-tek.com";
	public final static String LEADERCXB_PREFERENCES = "LeaderCXB_Preferences";
	public final static String LEADERCXB_LOCATIONNUMBER = "LeaderCXB_LocationNumber";
	public final static String LEADERCXB_IMSI = "IMSI";
	public final static String LEADERCXB_4SNUMBER = "LeaderCXB_4SNumber";
	public final static String LEADERCXB_PICKPROOFNUMBER = "LeaderCXB_PickproofNumber";
	public final static String LEADERCXB_PICKPROOFSTATE = "LeaderCXB_PickproofState";
	public final static String LEADERCXB_WIFIAP_SSID = "LeaderCXB_WifiAP_ssid";
	public final static String LEADERCXB_WIFIAP_PASSWORD = "LeaderCXB_WifiAP_password";
	public final static String LEADERCXB_CALLNUMBER = "LeaderCXB_CallNumber";
	public final static String LEADERCXB_CALLNUMBER_EXTENSION = "LeaderCXB_CallNumber_Extension";
	public final static String LEADERCXB_IS_SETUPWIZARD = "LeaderCXB_is_SetupWizard";
	public final static String LEADERCXB_IS_SETUPWIZARDWEIXIN = "LeaderCXB_is_SetupWizardWeiXin";
	public final static String LEADERCXB_TIMEOUT = "LeaderCXB_Timeout";
	public final static int LEADERCXB_UPDATE_POI_TIME = 1 * 1000;
	public final static int LEADERCXB_UPDATE_POI_RANGE = 0;
	public final static String LEADERCXB_TOTAL_DISTANCE = "LeaderCXB_Total_Distance";
	public final static String LEADERCXB_SERVICE_URL = "LeaderCXB_Service_Url";
	public final static String SMS_TABLENAME = "sms";
	public final static String UPLOAD_POI_TABLENAME = "poi";
	public final static String WIFI = "wifi";
	public final static String HISTORY_TABLENAME = "history";
	public final static String DB_NAME = "leadercxb.db";//
	public final static String ACTION_FM_TX_SWITCH = "action.fmtx.switch";//
	public final static String ACTION_UPDATE_FIND = "action.update.find";//
	public final static String ACTION_POWER_OFFING = "action.power_offing";//
	public final static String ACTION_CLOSE_AUTONAVI = "com.plugin.action.exit_app";
	
	public static Integer lock = 0;
	
	
	public final static String LEADERCXB_RADAR_STATE = "LeaderCXB_Radar_State";
	public final static int WIFI_AP_STATE_FAILED = 1;
	public final static int FM_STATE_OPEN = 1;
	public final static int FM_STATE_CLOSE =0;
	public final static int FM_STATE_OPENING = 3;

	public static class Setting {
		public static final int NAVI_TIMEOUT_DELAY_1_LEVEL = 15 * 1000;
		public static final int NAVI_TIMEOUT_DELAY_2_LEVEL = 60 * 1000;
		public static final int NAVI_TIMEOUT_DELAY_3_LEVEL = 10 * 60 * 1000;
		public static final int NAVI_TIMEOUT_DELAY_4_LEVEL = 3 * 3600 * 1000;

		public static final int SCREEN_TIMEOUT_DELAY_1_LEVEL = 10 * 1000;
		public static final int SCREEN_TIMEOUT_DELAY_2_LEVEL = 30 * 1000;
		public static final int SCREEN_TIMEOUT_DELAY_3_LEVEL = 3 * 60 * 1000;
		public static final int SCREEN_TIMEOUT_DELAY_4_LEVEL = 24 * 60 * 60 * 1000;
		public static final int SCREEN_TIMEOUT_DELAY_FOREVER = 45 * 1000;//-1;
		public static final boolean TTS_OPEN_DEFAULT = true;
		public static final int SCREEN_TIMEOUT_DELAY = SCREEN_TIMEOUT_DELAY_3_LEVEL;
		public static final int NAVIGATION_SAFEY_DELAY = NAVI_TIMEOUT_DELAY_2_LEVEL;
		public static final int TIMEOUT_NET_RECONNECT = 4;// 60*1000*60*4;
	}

	public static class IntentData {
		public static final String ACTION_RECEIVE_KEYDOWN_INTENT = "cxb.intent.keydown";
		public static final String EXTRA_KEY_CODE = "keyCode";
		public static final String ACTION_PHONE_STATE_INTENT = "com.ami.phonestate";

	}

	public static class HareWareKeyCode {
		public static final int KEYCODE_HOME = KeyEvent.KEYCODE_F1;
		public static final int KEYCODE_ONESTONE = KeyEvent.KEYCODE_F3;
		public static final int KEYCODE_ONE_KEY_RESCUE = KeyEvent.KEYCODE_3D_MODE;
		public static final int KEYCODE_NAVI = KeyEvent.KEYCODE_F4;
		public static final int KEYCODE_RECORDER = KeyEvent.KEYCODE_F5;
		public static final int KEYCODE_WENWEN = KeyEvent.KEYCODE_F6;
	}


	public static class CXBBroadcast {
		public static final String BC_MUSIC_PLAY_START = "com.cxb.service.musicplayservice.musicstart";
		public static final String BC_MUSIC_PLAY_PAUSE = "com.cxb.service.musicplayservice.musicpause";
		public static final String BC_MUSIC_REFRESH = "com.cxb.service.musicplayservice.musicrefresh";
		public static final String BC_MUSIC_REMOVE = "com.cxb.service.musicplayservice.musicremove";
		public static final String PLAYER_PREPARE_END = "com.cxb.service.musicplayerservice.prepared";
		public static final String PLAY_COMPLETED = "com.cxb.service.musicplayerservice.playcompleted";
		public static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED";
		public static final String SMS_REFRESH_ACTION = "com.cxb.manager.SMSManager.SMS_REFRESH";
		public static final String HISTORY_REFRESH_ACTION = "com.cxb.manager.HistoryManager.HISTORY_REFRESH";
		public static final String TTS_START_ACTION = "com.cxb.tts.start";
		public static final String OURSBOOT_COMPLETED = "com.cxb.service.OURSBOOT_COMPLETED";
		public static final String OURSSTOP_HOME = "com.cxb.service.OURSSTOP_HOME";
		public static final String TTS_STOP_ACTION = "com.cxb.tts.stop";
		public static final String STARTNAVIGATION = "com.cxb.startnavigation";
		public static final String SHAREVIDEO = "com.cxb.sharevideo";
		public static final String SHAREPICTURE = "com.cxb.sharepicture";
		public static final String ACTION_SEND_SHUTDOWN_IMAGE = "ACTION_SEND_SHUTDOWN_IMAGE";
	}
}
